package org.example.maven.pojo.classification.table;

import lombok.Data;
import org.example.maven.pojo.classification.table.ClassificationSubcategory;

import java.util.List;

@Data
public class ClassificationCategoryList {
    private Integer categoryId;
    private String category;
    private Integer subcategoryNumber;
    private Integer categoryIsDeactivate;
    private List<ClassificationSubcategory> children;

    public void addChildren(ClassificationSubcategory classificationSubcategory){
        this.children.add(classificationSubcategory);
    }
}
